﻿
<h2 class="title"> Додади корисник</h2>
<?php echo form_open_multipart('adminUsers/processUser'); ?>
<table>
	<tr>
		<td>Корисничко име:</td>
		<td><input type="text" name="username" id="username" /></td>
	</tr>
	<tr>
		<td>Лозинка:</td>
		<td><input type="text" name="password" id="password" /></td>
	</tr>
	<tr>
		<td>E-mail:</td>
		<td><input type="text" name="email" id="email" /></td>
	</tr>
	<tr>
		<td>Улога:</td>
		<td><select id="role" name="role">
			<?php 
				foreach($roles as $role)
					echo "<option value=".$role->idRlsPk.">".$role->name."</option>";
			?>
		</select></td>
	</tr>
	<tr>
		<td>Кориснички профил:</td>
		<td><select id="staffProfile" name="staffProfile">
			<option value="">--</option>
			<?php 
				foreach($profiles as $profile)
						echo "<option value=".$profile->idStaffPk.">".$profile->name." ".$profile->surname."</option>";
			?>
		</select></td>
	</tr>
	<tr>
		<td><input type="hidden" name="tip" id="tip" value="1" /></td>
		<td><input type="submit" name="submit" id="submit" value="Внеси" /></td>
	</tr>
</table>
<?php echo form_close(); ?>